#ifndef _encoder_h
#define _encoder_h
#include "headfile.h"

#define PULSE_LEFT  CTIM0_P34
#define PULSE_RIGHT CTIM3_P04

#define DIR_LEFT  P35
#define DIR_RIGHT P53
extern int16  left_encoder;
extern int16 right_encoder;

void encoder_init(void);
void encoder_scan(void);

#endif

